package com.tianji.remark.service;

import com.tianji.remark.domain.dto.LikeRecordFormDTO;
import com.tianji.remark.domain.po.LikedRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 点赞记录表 服务类
 * </p>
 *
 * @author Ys
 * @since 2023-08-13
 */
public interface ILikedRecordService extends IService<LikedRecord> {

    // 点赞或取消点赞
    void addLikeRecord(LikeRecordFormDTO recordDTO);

    // 批量查询我的点赞状态
    Set<Long> getLikedIds(List<Long> bizIds);

    // 从redis中读取点赞数量，发送mq消息
    void readLikedTimesAndSendMQ();
}
